package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 传感器异常对象 sensor_anomaly
 * 
 * @author ruoyi
 * @date 2023-11-15
 */
public class SensorAnomaly extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Integer id;

    /** 采集站编码 */
    @Excel(name = "采集站编码")
    private String coding;

    /** 通道号 */
    @Excel(name = "通道号")
    private Long channelNumber;

    /** 传感器类型 */
    @Excel(name = "传感器类型")
    private String type;

    /** 路径 */
    @Excel(name = "路径")
    private String path;

    /** 异常时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "异常时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date abnormalTime;

    /** 持续时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "持续时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date durationTime;

    /** 序列号 */
    @Excel(name = "序列号")
    private Long serialNumber;

    /** 电压 */
    @Excel(name = "电压")
    private String voltage;

    /** 末次数据时间 */
    @Excel(name = "末次数据时间")
    private String lastData;

    /** 缺陷原因类别 */
    @Excel(name = "缺陷原因类别")
    private String causeCategory;

    /** 处理人 */
    @Excel(name = "处理人")
    private String conductor;

    /** 处理方式 */
    @Excel(name = "处理方式")
    private String processMode;

    /** 处理说明 */
    @Excel(name = "处理说明")
    private String processingSpecification;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date processingTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCoding(String coding) 
    {
        this.coding = coding;
    }

    public String getCoding() 
    {
        return coding;
    }
    public void setChannelNumber(Long channelNumber) 
    {
        this.channelNumber = channelNumber;
    }

    public Long getChannelNumber() 
    {
        return channelNumber;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setPath(String path) 
    {
        this.path = path;
    }

    public String getPath() 
    {
        return path;
    }
    public void setAbnormalTime(Date abnormalTime) 
    {
        this.abnormalTime = abnormalTime;
    }

    public Date getAbnormalTime() 
    {
        return abnormalTime;
    }
    public void setDurationTime(Date durationTime) 
    {
        this.durationTime = durationTime;
    }

    public Date getDurationTime() 
    {
        return durationTime;
    }
    public void setSerialNumber(Long serialNumber) 
    {
        this.serialNumber = serialNumber;
    }

    public Long getSerialNumber() 
    {
        return serialNumber;
    }
    public void setVoltage(String voltage) 
    {
        this.voltage = voltage;
    }

    public String getVoltage() 
    {
        return voltage;
    }
    public void setLastData(String lastData) 
    {
        this.lastData = lastData;
    }

    public String getLastData() 
    {
        return lastData;
    }
    public void setCauseCategory(String causeCategory) 
    {
        this.causeCategory = causeCategory;
    }

    public String getCauseCategory() 
    {
        return causeCategory;
    }
    public void setConductor(String conductor) 
    {
        this.conductor = conductor;
    }

    public String getConductor() 
    {
        return conductor;
    }
    public void setProcessMode(String processMode) 
    {
        this.processMode = processMode;
    }

    public String getProcessMode() 
    {
        return processMode;
    }
    public void setProcessingSpecification(String processingSpecification) 
    {
        this.processingSpecification = processingSpecification;
    }

    public String getProcessingSpecification() 
    {
        return processingSpecification;
    }
    public void setProcessingTime(Date processingTime) 
    {
        this.processingTime = processingTime;
    }

    public Date getProcessingTime() 
    {
        return processingTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("coding", getCoding())
            .append("channelNumber", getChannelNumber())
            .append("type", getType())
            .append("path", getPath())
            .append("abnormalTime", getAbnormalTime())
            .append("durationTime", getDurationTime())
            .append("serialNumber", getSerialNumber())
            .append("voltage", getVoltage())
            .append("lastData", getLastData())
            .append("causeCategory", getCauseCategory())
            .append("conductor", getConductor())
            .append("processMode", getProcessMode())
            .append("processingSpecification", getProcessingSpecification())
            .append("processingTime", getProcessingTime())
            .toString();
    }
}
